package com.gitee.ywj1352.gateway.rpc;

import com.gitee.ywj1352.common.pojo.User;
import com.gitee.ywj1352.common.vo.ResponseVO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 从customer 查找 用户信息
 * Created by wenjie.yang on 6/28/2018.
 */
@FeignClient("customer")
public interface ClientAuthRpc {
    @RequestMapping(value = "/cm",method = RequestMethod.POST)
    ResponseVO getToken(User user);
}
